import request from "@/utils/request";

/**
 * 获取租户合同额度
 */
export function getSiteCount() {
  return request({
    url: `/hr/api/v1/siteContractQuotas/selectBySite`,
    method: "get"
  });
}

/**
 * 获取用工单位列表
 */
export function getCompanyList(params) {
  return request({
    url: `/hr/api/v1/companyContractQuotas/listAll`,
    method: "get",
    params:params
  });
}

/**
 * 企业认证
 */
export function companyCertified(data) {
  return request({
    url: "/hr/api/v1/companyContractQuotas",
    method: "post",
    data
  });
}

/**
 * 企业认证更新
 */
export function companyCertifiedUpdate(data) {
  return request({
    url: "/hr/api/v1/companyContractQuotas",
    method: "put",
    data
  });
}

/**
 * 用工单位配额
 */
export function companyTranche(data) {
  return request({
    url: "/hr/api/v1/companyContractQuotas/recharge",
    method: "put",
    data
  });
}
/**
 * 租户配额
 */
export function siteTranche(data) {
  return request({
    url: "/hr/api/v1/siteContractQuotas/rechargeSite",
    method: "put",
    data
  });
}
